;字符串的反序拷贝
;DATE 2023/12/26 MADE BY TL
ASSUME CS:CODE,DS:DATA
DATA SEGMENT
	SOURCE DB 'Hello World!',0DH,0AH,'$'
	TARGET DB 12 DUP(?),0DH,0AH,'$'
DATA ENDS
CODE SEGMENT
START:
	MOV AX,DATA
	MOV DS,AX
	LEA SI,SOURCE
	LEA DI,TARGET
	ADD SI,12
	MOV CX,13
ROTATE:
	MOV AL,[SI]
	MOV [DI],AL
	INC DI
	DEC SI
	LOOP ROTATE
	
	LEA DX,TARGET
	MOV AH,09H
	INT 21H
	
	MOV AX,4C00H
	INT 21H
CODE ENDS
END START
	